var CropTypes = {

    html: function (CropTypes) {

        var html="<div class=\"CropTypesDiv\" id='CropTypesDiv'>";
        var zhibiaoSelectHtml="";
        if(CropTypes!=null&&typeof(CropTypes)!='underfined'&&CropTypes.length>0){
            zhibiaoSelectHtml="<div class=\"pluginsSingleRows layui-form-item \"><label class='layui-form-label'>作物类型:</label><div class='layui-input-block'><select id='zhibiaoSelect'>";
        }else{
            zhibiaoSelectHtml="<div class=\"pluginsSingleRows layui-form-item \" style=\"display:none;\"><label class='layui-form-label'>作物类型:</label><div class='layui-input-block'><select id='zhibiaoSelect'>";
        }

            for(var i=0;i<CropTypes.length;i++){
                zhibiaoSelectHtml+="<option value='"+(i+1)+"' ";
                if(i==0){
                    zhibiaoSelectHtml+="selected=\"selected\"";
                }
                zhibiaoSelectHtml+=" >"+CropTypes[i]+"</option>";
            }

        zhibiaoSelectHtml+="</select></div></div>";
        html+=zhibiaoSelectHtml;

        html+="</div>";
        return html;
    },
    getData: function () {
        // Global.postData.paramsMap = 'RT_SPI30';
        var val=$('#CropTypesDiv option:selected') .val();
        if(val !=null && val !="underfined"){
             Global.postData.paramsMap = $('#CropTypesDiv option:selected') .val();
        }

    },

};
  
  
  